/* static/css/schedule_detail.css */

/* —— 详情列表字段/值同一行、不换行 —— */
#scheduleDetailModal dl.row dt,
#scheduleDetailModal dl.row dd {
  display: inline-block;
  vertical-align: middle;
  white-space: nowrap;
  margin-bottom: 0.5rem;
}

/* 字段名宽度固定 */
#scheduleDetailModal dl.row dt {
  width: 100px;    /* 可根据字段长度调整 */
  font-weight: 600;
  color: #495057;
}

/* 值部分占剩余并自动省略 */
#scheduleDetailModal dl.row dd {
  width: calc(100% - 100px);
  margin-left: 0;
  color: #212529;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 弹框正文左侧内边距 */
#scheduleDetailModal .modal-body dl.row {
  padding-left: 1.5rem;
}

/* —— 删除选项容器 —— */
#delete-options {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 10;
}

/* 删除选项按钮 */
.delete-option-btn {
  width: 6rem;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.25rem 0;
  color: #fff;
  border-radius: 0.25rem;
  cursor: pointer;
}
.delete-once    { background-color: #dc3545; }
.delete-ongoing { background-color: #c82333; }

#confirmModal {
  z-index: 1060; /* 高于详情框（默认 1050） */
}

/* —— 确认 Modal 美化 —— */
#confirmModal .modal-content {
  border: 2px solid #dc3545;   /* 红色边框强调删除 */
  box-shadow: 0 0 10px rgba(220,0,0,0.5);
}
#confirmModal .modal-header {
  border-bottom: none;
}
#confirmModal .modal-body {
  background-color: #fff5f5;   /* 淡红背景 */
}

#confirmOk {
  background-color: #dc3545;
  border-color: #dc3545;
}
#confirmOk:hover {
  background-color: #c82333;
  border-color: #bd2130;
}
#confirmOk, #confirmCancel {
  min-width: 4rem;
}
#confirmCancel {
  margin-left: 0.5rem;
}
